TARGET	:= $(LIBCC_NET)
SRCS 	:= $(notdir $(shell find . -name "*.c" -type f))
OBJECTS	:= $(patsubst %.c,%.o,$(SRCS))

$(TARGET) : $(OBJECTS) $(LIBCC_STL)
	$(AR) crv $@ $^
	@echo ''

%.o:%.c
	@printf "%-20s %-30s %-20s\r\n"  "--------------" "Compiling $<" "----------------"
	$(CC) -g -c -I $(LIBCC_ROOT) -D$(LIBCC_BYTEORDER) $^ -o $@ 
	@printf "%-20s %-30s %-20s\r\n"  "--------------" "Generate $@ ok!" "----------------"

clean:
	@rm -f $(TARGET)
	@rm -f $(OBJECTS)
	@rm -f *.orig

	